﻿/// Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ServiceModel.Activation;
using Microsoft.ServiceModel.Web;
using System.Linq;
using System.Net;

// The following line sets the default namespace for DataContract serialized typed to be ""
[assembly: ContractNamespace("", ClrNamespace = "DataLayerUnity")]

namespace DataLayerUnity
{
  // TODO: Please set IncludeExceptionDetailInFaults to false in production environments
  [ServiceBehavior(IncludeExceptionDetailInFaults = true), AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public partial class Service : IGuysAndGals
  {
    public string GetData(string applicationName)
    {
      ServiceProvider provider = new ServiceProvider();
      return provider.GetData(applicationName);
    }

    public ApplicationConfig WriteConfig(string applicationName)
    {
      ServiceProvider provider = new ServiceProvider();
      return provider.WriteConfig(applicationName);
    }
  }
}